import * as nconf from 'nconf'
import {Settings} from "./interfaces";

class SettingsImpl implements Settings {
    public productKey: string
    public deviceName: string
    public deviceSecret: string

    init() {
        nconf.argv().env();
        this.productKey = nconf.get('productKey');
        this.deviceName = nconf.get('deviceName');
        this.deviceSecret = nconf.get('deviceSecret');
    }
}

const settings = new SettingsImpl();

export default settings;